//
//  WMSDKTool.h
//  WonderPurchaseSDK
//
//  Created by zero on 2021/7/22.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface WMSDKTool : NSObject

/// AppID
@property (nonatomic, readonly, copy) NSString *sid;

/// bms唯一标识
@property (nonatomic, readonly, copy) NSString *bmsAppName;

/// bms渠道
@property (nonatomic, readonly, copy) NSString *bmsChannel;

/// openId
@property (nonatomic, readonly, copy) NSString *openId;

/// uuId
@property (nonatomic, readonly, copy) NSString *uuId;

@property (nonatomic, readonly, copy) NSString *idfv;
@property (nonatomic, readonly, copy) NSString *idfa;

@property (nonatomic, readonly, copy) NSString *host;
@property (nonatomic, readonly, copy) NSString *loginUrl;
@property (nonatomic, readonly, copy) NSString *configUrl;
@property (nonatomic, readonly, copy) NSString *configHost;
@property (nonatomic, readonly, copy) NSString *createOrderUrl;
@property (nonatomic, readonly, copy) NSString *verifyOrderUrl;

@property (nonatomic, readonly, copy) NSString *nowTime;

/// 商品列表
@property (nonatomic, readwrite, copy) NSArray *productLists;

/// 用户点击恢复
@property (nonatomic, readwrite, assign) BOOL isUserClickResume;

/// 发货记录
@property (nonatomic, readwrite, copy) NSMutableDictionary *deliveryRecordDic;


+ (instancetype)sharedSDKTool;

- (void)setupAppParams:(NSDictionary *)params;

- (void)setupTost;

- (void)setupAppUUId:(NSString *)uuid;

- (void)setupDevieIdfa:(NSString *)idfa;

- (NSString *)getProductTypeWithProductId:(NSString *)productId;

- (void)showLoading;

- (void)dismissLoading;

- (void)showMsg:(NSString *)msg;

@end

NS_ASSUME_NONNULL_END
